#ifndef __REGISTERDIALOG_H__
#define __REGISTERDIALOG_H__

#include <QDialog>

class QFormLayout;
class QVBoxLayout;
class QHBoxLayout;
class QLineEdit;
class QPushButton;
class QString;

namespace Ui {

class RegistrationDialog : public QDialog {
Q_OBJECT

public:
	RegistrationDialog(QWidget *parent=0);
	~RegistrationDialog();

private slots:
	void ok();
private:
	/* Main widgets */
	QPushButton *okButton;
	QPushButton *cancelButton;
	QLineEdit *userName;
	QLineEdit *password1;
	QLineEdit *password2;
	QFormLayout *formLayout;
	QHBoxLayout *buttonsLayout;
	QVBoxLayout *mainLayout;
signals:
	void registration(const QString &userName, const QString &password);
	void registration(const QString &userName, const QByteArray &password);
	void okClicked();
	void cancelled();
};

}

#endif
